home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / c_wndw.arc / DISPLAY1.C < prev    next >
Text File  |  1990-01-28  |  1KB  |  27 lines

  1. /*  (c) Marietta Systems, Inc.  1987
  2. *   All rights reserved
  3. *
  4. *   demonstration program for the display function
  5. */
  6. #include "mtest.h"
  7. void main() {
  8. int x = 2, y = 5, a = 3, b = 41;
  9. byte text[80];
  10. /*        */
  11. clr_scrn("Display test - 1"); idleloop(30);
  12. sprintf(text, "The value of a is %d; the value of b is %d", a, b);
  13. display(text, 20, 20, blink); idleloop(30);
  14. mk_wndw(3,30, 10,55,"The window is here");  idleloop(30);
  15. display("now is the time", x++, y--, high); idleloop(30);
  16. display("for all good men", x++, y--, low); idleloop(30);
  17. display("to come to the aid", x++, y, reverse); idleloop(30);
  18. display("of their ", x++, y, alt_low);   idleloop(30);
  19. display("country.", 0, 0, alt_high);     idleloop(30);
  20. display("or is that 'party'?", x, --y, alt_reverse); 
  21. display("**",0,0,blank);
  22. idleloop(30); display("xxxxxxxxxxxxxxxxxxxxxxxxxxxx",0,0,blink);
  23. /*        */
  24. while (!disp_qry(" Ready to finish"));
  25. goodbye(0);
  26.